Name: zlib-ada Version: 1.4 Release: 0.2.20120830CVS%{?dist} Summary: Zlib for Ada Summary(sv): Zlib för ada Group: System Environment/Libraries License: GPLv3+ with exceptions URL: http://zlib-ada.sourceforge.net/ # The tarball was made with these commands: # cvs -z3 -d:pserver:anonymous@zlib-ada.cvs.sourceforge.net:/cvsroot/zlib-ada co -P zlib-ada # tar --create --exclude-vcs --bzip2 --file=zlib-ada-20120830.tar.bz2 zlib-ada Source: zlib-ada-20120830.tar.bz2 # This will be the source when there is a new release: #Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz Source2: build_zlib_ada.gpr Source3: zlib_ada.gpr BuildRequires: gcc-gnat gprbuild fedora-gnat-project-common zlib-devel # Build only on architectures where gcc-gnat is available: ExclusiveArch: %{GNAT_arches} %global common_description_en \ Zlib-Ada is a thick Ada binding to the popular compression/decompression \ library Zlib. %global common_description_sv \ Zlib-Ada är en tjock adabindning till det populära komprimerings- och \ avkomprimeringsbiblioteket Zlib. %description %{common_description_en} %description -l sv %{common_description_sv} %package devel Summary: Development files for Zlib-Ada Summary(sv): Filer för programmering med Zlib-Ada Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} Requires: fedora-gnat-project-common %description devel %{common_description_en} The %{name}-devel package contains source code and linking information for developing applications that use Zlib-Ada. %description devel -l sv %{common_description_sv} Paketet %{name}-devel innehåller källkod och länkningsinformation som behövs för att utveckla program som använder Zlib-Ada. %prep %setup -q -n zlib-ada chmod a-x * # Remove bogus executable bits. cp %{SOURCE2} . %build gprbuild -P build_zlib_ada.gpr %{GPRbuild_optflags} -XDESTDIR=build_target -XLDFLAGS=%{__global_ldflags} # GPRbuild is used because Gnatmake adds a runpath in spite of -R. %install mv build_target/* --target-directory=%{buildroot} # Add the project file for projects that use this library. mkdir --parents %{buildroot}%{_GNAT_project_dir} cp --preserve=timestamps %{SOURCE3} %{buildroot}%{_GNAT_project_dir}/ %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc readme.txt COPYING3 COPYING.RUNTIME %{_libdir}/*.so.* %files devel %doc test.adb mtest.adb read.adb buffer_demo.adb %{_includedir}/* %{_libdir}/*.so %{_libdir}/zlib-ada %{_GNAT_project_dir}/* %changelog * Sat Sep 01 2012 Björn Persson - 1.4-0.2.20120830CVS - Remove bogus executable bits. * Thu Aug 30 2012 Björn Persson - 1.4-0.1.20120830CVS - ready to be submitted for review